package com.kob.mysql.controller;

import com.kob.mysql.entity.User;
import com.kob.mysql.result.R;
import com.kob.mysql.service.CrudService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class MysqlCrudController {
    @Autowired
    private CrudService crudService;

    @GetMapping("/mysql/getlist")
    R getList(){
        return crudService.getList();
    }
    @DeleteMapping("/mysql/deleteById")
    R deleteById(Integer id){
        return null;
    }
    @PutMapping("/mysql/addOne")
    R addOne(User user){
        return null;
    }
    @PostMapping("/mysql/updateOneById")
    R updateOneById(User user){
        return null;
    }
}
